package com.zd.building.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 楼宇对象 building
 * 
 * @author fxiao
 * @date 2020-08-12
 */
public class Building extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDatetime;

    /** 更新时间 */
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDatetime;

    /** 所属场所名称 */
    @Excel(name = "所属场所名称")
    private String sscsMc;

    /** 所属场所类型 */
    @Excel(name = "所属场所类型",readConverterExp = "jd=酒店、宾馆,xq=小区,cz=出租房,xx=学校")
    private String sscsLx;

    /** 楼号 */
    @Excel(name = "楼号")
    private Integer lh;

    /** 每栋拥有单元数 */
    @Excel(name = "每栋拥有单元数")
    private Integer dys;

    /** 总层数 */
    @Excel(name = "总层数")
    private Integer cs;

    /** 每单元每层户数 */
    @Excel(name = "每单元每层户数")
    private Integer hs;

    /** 所属社区代码 */
    private String sqCode;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCreateDatetime(Date createDatetime) 
    {
        this.createDatetime = createDatetime;
    }

    public Date getCreateDatetime() 
    {
        return createDatetime;
    }
    public void setUpdateDatetime(Date updateDatetime) 
    {
        this.updateDatetime = updateDatetime;
    }

    public Date getUpdateDatetime() 
    {
        return updateDatetime;
    }
    public void setSscsMc(String sscsMc) 
    {
        this.sscsMc = sscsMc;
    }

    public String getSscsMc() 
    {
        return sscsMc;
    }
    public void setSscsLx(String sscsLx) 
    {
        this.sscsLx = sscsLx;
    }

    public String getSscsLx() 
    {
        return sscsLx;
    }
    public void setLh(Integer lh) 
    {
        this.lh = lh;
    }

    public Integer getLh() 
    {
        return lh;
    }
    public void setDys(Integer dys) 
    {
        this.dys = dys;
    }

    public Integer getDys() 
    {
        return dys;
    }
    public void setCs(Integer cs) 
    {
        this.cs = cs;
    }

    public Integer getCs() 
    {
        return cs;
    }
    public void setHs(Integer hs) 
    {
        this.hs = hs;
    }

    public Integer getHs() 
    {
        return hs;
    }
    public void setSqCode(String sqCode)
    {
        this.sqCode = sqCode;
    }

    public String getSqCode()
    {
        return sqCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createDatetime", getCreateDatetime())
            .append("updateDatetime", getUpdateDatetime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("sscsMc", getSscsMc())
            .append("sscsLx", getSscsLx())
            .append("lh", getLh())
            .append("dys", getDys())
            .append("cs", getCs())
            .append("hs", getHs())
            .append("sqCode", getSqCode())
            .toString();
    }
}
